package cn.zt.controller;

import cn.zt.common.Result;
import cn.zt.service.TUserService;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestParam;
import org.springframework.web.bind.annotation.RestController;

import javax.annotation.Resource;

@RestController
@RequestMapping("user")
public class UserController {

    @Resource
    private TUserService userService;

    //通过id查询nickname
    @GetMapping("selectById")
    public Result selectById(@RequestParam("id") Integer id){
        return userService.selectById(id);
    }


}
